package com.caiyouxi.partner.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.partner.model.ChannelVersionBean;
import com.caiyouxi.partner.service.ChannelVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("channel_version")
public class ChannelVersionController {
    @Autowired
    private ChannelVersionService service;

    @RequestMapping("select_version")
    public ResData select_version(@RequestBody ChannelVersionBean bean){
        return service.select_version(bean);
    }

    @RequestMapping("get_version_list")
    public ResData get_version_list(@RequestBody ChannelVersionBean bean){
        return service.get_version_list(bean);
    }

    @RequestMapping("add_version")
    public ResData add_version(@RequestBody ChannelVersionBean bean){
        return  service.add_version(bean);
    }

    @RequestMapping("update_version")
    public ResData update_version(@RequestBody ChannelVersionBean bean){
        return service.update_version(bean);
    }

    @RequestMapping("delete_version")
    public ResData delete_version(@RequestBody ChannelVersionBean bean){
        return service.delete_version(bean);
    }
}
